cmake_minimum_required(VERSION 3.10)
project(data-structure-and-algorithm)

set(CMAKE_CXX_STANDARD 11)
include_directories(src)
aux_source_directory(src SRC_LIST)
aux_source_directory(src/binary_tree SRC_LIST)
aux_source_directory(src/sort SRC_LIST)
aux_source_directory(src/binary_search SRC_LIST)
aux_source_directory(test TEST_LIST)
aux_source_directory(test/binary_tree TEST_LIST)
aux_source_directory(test/sort TEST_LIST)
aux_source_directory(test/binary_search TEST_LIST)
aux_source_directory(src/utils SRC_LIST)
aux_source_directory(src/depth_first_search SRC_LIST)
aux_source_directory(test/depth_first_search TEST_LIST)

add_executable(data-structure-and-algorithm ${SRC_LIST} ${TEST_LIST})
target_link_libraries(data-structure-and-algorithm gtest pthread)